import Vue from 'vue'
import App from './App.vue'
import Echarts from 'echarts'
import element from './element/index.js'
import { Message } from 'element-ui'
import './styles/index.css' // global css
import MD5 from 'md5'
// import 'element-ui/lib/theme-chalk/index.css'
import router from './router/index'
import fontSize from '@/utils/base64.js'
import '@/common/flexible.js';
// import "lib-flexible/flexible.js";
import '@/assets/all.css'
import '@/assets/common2.css'
import screenfull from 'screenfull'
import axios from 'axios';  //引入axios
import VueAxios from 'vue-axios';  // 引入vue-axios
import appConfig from './common/common';
import '@/assets/font/iconfig/icon.css'
Vue.prototype.appConfig=appConfig;
// import Promise from 'promise-polyfill'

import scroll from 'vue-seamless-scroll'
Vue.use(scroll)

// if (!window.Promise) {
//   window.Promise = Promise;
// }

Vue.prototype.$echarts = Echarts
Vue.prototype.$fontSize = fontSize

Vue.config.productionTip = false
Vue.config.devtools = true
Vue.use(element)
Vue.use(MD5)
// Vue.use(screenfull)
Vue.use(VueAxios, axios);  //使用
Vue.prototype.$message = Message; // 全局注册
Vue.prototype.$screenfull = screenfull
new Vue({
  render: h => h(App),
  router,
  // mounted() {
  //   document.dispatchEvent(new Event('render-event'))
  // }
}).$mount('#app')
